package com.jk1.bianligou.blg.service;

import com.jk1.bianligou.blg.domain.dto.order.CreateOrderRequest;
import com.jk1.bianligou.blg.domain.po.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jk1.bianligou.blg.domain.vo.OrderVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
* @author WHH
* @description 针对表【order(订单表)】的数据库操作Service
* @createDate 2025-04-11 21:58:04
*/
public interface OrderService extends IService<Order> {

    Long createOrder(CreateOrderRequest request, HttpServletRequest httpServletRequest);

    List<OrderVO> getByUserId(Long id);

    Boolean markSuccess(Long id);

    Map<Integer, List<OrderVO>> showOrders();
}
